using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Scripting.Hosting;


namespace CoolEngine.Engine.Scripting
{
    /// <summary>
    /// This class will be instantiated by the XNA Framework Content
    /// Pipeline to read the specified data type from binary .xnb format.
    /// 
    /// Unlike the other Content Pipeline support classes, this should
    /// be a part of your main game project, and not the Content Pipeline
    /// Extension Library project.
    /// </summary>
    public class PythonSourceFileReader : ContentTypeReader<PythonSourceFile>
    {
        protected override PythonSourceFile Read(ContentReader input, PythonSourceFile existingInstance)
        {
            existingInstance = new PythonSourceFile();
            existingInstance.Module = input.ReadString();
            existingInstance.Text = input.ReadString();
            return existingInstance;
        }
    }
}
